package com.song.ejf.service;

import java.util.List;
import java.util.Map;

import com.song.ejf.page.Page;
import com.song.ejf.pojo.SRole;

public interface RoleService {

	public void loadRolePage(Page page,String roleName) throws Exception;
	public boolean delRole(String[] checkItems) throws Exception;
	public void saveOrUpdateRole(SRole role) throws Exception;
	public SRole findRoleById(String id) throws Exception;
	//根据角色id，得到该角色所有相关资源
	public List<Map<String, String>> loadResByRoleId(String roleId) throws Exception;
	//添加角色资源
	public boolean addResRole(String[] checkItems,String roleId) throws Exception;
	//加载所有角色
	public List<Map<String, String>> loadAllRes() throws Exception;
	//根据用户id加载该用户所有资源
	public List<?> loadResByUserId(String userId) throws Exception;
}
